WebApplicationContenxt wac;

//订阅
RTopic topic = redissonClient.getTopic(topicName);
topic.addListener(MyEvent.clas,(charsequent,event)->wac.publishEvent(event));

//广播
redissonClient.getTopic(topicName).publish(new MyEvent());